const express = require('express');
const app = express();

app.all('*', function (req, res, next) {
  res.header('Access-Control-Allow-Origin', '*');
  res.header('Access-Control-Allow-Headers', '*');
  res.header('Access-Control-Allow-Methods', 'PUT, POST, GET, DELETE, OPTIONS');

  next();
});

app.use('/test', express.static("test"));
app.use('/dist', express.static("dist"));
app.use('/xml', express.static("xml"));

app.listen(3000, function () {
  console.log('test project is running at:\033[32mhttp://localhost:3000/xml/express.xml')
});